//
//  BCGotCommitVC.m
//  BangcaiDriver
//
//  Created by lsy on 16/8/22.
//  Copyright © 2016年 BC. All rights reserved.
//

#import "BCGotCommitVC.h"
#import "BCGotCommitView.h"
#import "BCOrderDetailVC.h"
@interface BCGotCommitVC ()<clickDelegate>
@property(nonatomic, strong)BCGotCommitView *gotCommitView;
@end

@implementation BCGotCommitVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.gotCommitView = [[BCGotCommitView alloc] initWithFrame:self.view.frame];
    self.gotCommitView.delegate = self;
    [self.view addSubview:self.gotCommitView];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden = YES;

}

- (void)viewWillDisappear:(BOOL)animated{
    self.navigationController.navigationBarHidden = NO;
}

- (void)goGotCommit
{
}

- (void)clickWithIndex:(NSIndexPath *)index
{
    BCOrderDetailVC *orderVC = [[BCOrderDetailVC alloc] init];
    [self.navigationController pushViewController:orderVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
